﻿using DevExpress.XtraGrid.Demos.util;
using Luna小店.DTO.尖山;
using Luna小店.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Luna小店.service.redis_service
{
    public class 参考款Service
    {
        public bool save参考款(DTO参考款 dTO)
        {
            return new RedisCacheHelper().StringSet(dTO.key, FunctionHelper.JsonSerialization(dTO));
        }


        /// <summary>
        /// 取得参考款
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public String get设计点(String key)
        {
            return
                FunctionHelper.JsonDeserialization<DTO参考款>(
                    new RedisCacheHelper().StringGet(key)
                    ).Value;
        }

    }
}
